package com.shelpe.services.sinbad.entity.jpa;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import com.shelpe.services.sinbad.entity.jpa.MessageAttention.MessageAttentionPK;

import lombok.Data;

@Entity(name = "message_attention")
@IdClass(MessageAttentionPK.class)
@Data
public class MessageAttention {
	@Id
	@Column(name = "user_id")
	private long userID;
	@Id
	@Column(name = "message_id")
	private long messageID;
	
	private String nick;
	
	@Data
	public static class MessageAttentionPK implements Serializable {
		private static final long serialVersionUID = 1L;
		@Column(name = "user_id")
		private long userID;

		@Column(name = "message_id")
		private long messageID;
	}
}
